package com.adkfp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.adkfp.bean.ManageUserBean;
import com.adkfp.service.ManageUserService;
import com.adkfp.dao.ManageUserDaoMapper;

@Service("manageUserService")
public class ManageUserServiceImpl implements ManageUserService{
	
	@Resource(name="manageUserDaoMapper")
	private ManageUserDaoMapper manageUserDaoMapper;

	@Override
	public ManageUserBean getUserByUserName(String userName, Integer deleteFlag) {
		ManageUserBean manageUser = new ManageUserBean();
		manageUser.setUserName(userName);
		
		List<ManageUserBean> list = manageUserDaoMapper.getManageUserByMap(manageUser);
		
		if(list !=null && !list.isEmpty()){
			return list.get(0);
		}
		
		return null;
	}

}
